package com.hursing.tractor.baseview;

import android.content.Context;
import android.graphics.Rect;
import android.view.View;
import android.widget.Toast;

public final class UIWindow extends UIView {

	public View mAndroidView;
	
	private static UIWindow mSharedInstance = new UIWindow();
	public static UIWindow instance() {
		return mSharedInstance;
	}
	
	private UIWindow() {
		mWindow = this;
	}
	
	public UIWindow androidView(View view) {
		mAndroidView = view;
		return this;
	}
	
	public View androidView() {
		return mAndroidView;
	}
	
	@Override
	public void invalidate(Rect bounds) {
		mAndroidView.invalidate(bounds);
	}
	
	public Context context() {
		return mAndroidView.getContext();
	}
	
	public void tipRejectThrow() {
		Toast.makeText(context(), "甩牌失败强制出小", Toast.LENGTH_SHORT).show();
	}
}
